package com.example.pagingdemo;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProvider;
import androidx.paging.PagedList;
import androidx.recyclerview.widget.LinearLayoutManager;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.pagingdemo.databinding.ActivityMainBinding;
import com.example.pagingdemo.model.Movie;
import com.example.pagingdemo.paging.movie.MoviePageListAdapter;
import com.example.pagingdemo.paging.movie.MovieViewModel;

public class MainActivity extends AppCompatActivity {

    private ActivityMainBinding mBinding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mBinding = DataBindingUtil.setContentView(this,R.layout.activity_main);

    }

    public void goPageKey(View view) {
        startActivity(new Intent(this,PageKeyActivity.class));
    }

    public void goPosition(View view) {
        startActivity(new Intent(this,PagePositionActivity.class));
    }

    public void goItemKey(View view) {
        startActivity(new Intent(this,ItemKeyActivity.class));
    }

    public void goDoctor(View view) {
        startActivity(new Intent(this,DoctorListActivity.class));
    }
}